Logger

class Logger

Static class to configure log and create log entries.

Functions

Link copied to clipboard
open fun debug(message: String)
Logs a DEBUG message.
open fun debug(msgSupplier: Supplier<String>)
Logs a lazily constructed DEBUG message.
open fun debug(message: String, arguments: Array<Any>)
Logs a DEBUG message with the given arguments.
open fun debug(message: String, exception: Throwable)
Logs a DEBUG message with the given exception.
open fun debug(message: String, parameterSupplier: Supplier<String>)
Logs an ERROR message with a given lazy calculated parameter.
Link copied to clipboard
open fun error(message: String)
Logs an ERROR message.
open fun error(message: String, arguments: Array<Any>)
Logs an ERROR message with the given arguments.
open fun error(message: String, exception: Throwable)
Logs an ERROR message with the given exception.
open fun error(message: String, exception: Throwable, arguments: Array<Any>)
Logs an ERROR message with the given exception and arguments.
open fun error(message: String, exception: Throwable, parameterSupplier: Supplier<String>)
Logs an ERROR message with the given exception and a lazy calculated parameter.
Link copied to clipboard
open fun info(message: String)
Logs an INFO message.
open fun info(message: String, arguments: Array<Any>)
Logs an INFO message with the given arguments.
Link copied to clipboard
Checks whether log entries at DEBUG level will be output.
Link copied to clipboard
Checks whether log entries at ERROR level will be output.
Link copied to clipboard
Checks whether log entries at INFO level will be output.
Link copied to clipboard
Checks whether log entries at TRACE level will be output.
Link copied to clipboard
Checks whether log entries at WARNING level will be output.
Link copied to clipboard
open fun level(): Level
Returns the current log level specifying which message levels will be logged.
open fun level(level: Level)
Sets the log level specifying which message levels will be logged.
Link copied to clipboard
open fun off()
Disables logging by setting the log level to OFF.
Link copied to clipboard
open fun trace(msgSupplier: Supplier<String>)
Logs a lazily constructed TRACE message.
open fun trace(message: String, arguments: Array<Any>)
Logs a TRACE message with the given arguments.
Link copied to clipboard
open fun warn(message: String)
Logs a WARNING message.
open fun warn(message: String, arguments: Array<Any>)
Logs a WARNING message with the given arguments.
open fun warn(message: String, exception: Throwable)
Logs a WARNING message with the given exception.
open fun warn(exception: Throwable, msgSupplier: Supplier<String>)
Logs a lazily constructed WARNING message with the given exception.